package paypal

import (
	"simplifly-tech/payment/internal"
	model2 "simplifly-tech/payment/model"
)

func (paypalService *PaypalService) Pay(ctx, payData *model2.PayData) (*model2.PaymentNotification, error) {

	createPayReq := internal.CreatePayReq{
		Intent: "CAPTURE",
	}

	createPayReq.PaymentSource.Paypal.ExperienceContext = &internal.CreatePayReqExperienceContext{
		PaymentMethodPreference: "IMMEDIATE_PAYMENT_REQUIRED",
		BrandName:               "ZHIFEI",
		Locale:                  "en-CN",
		LandingPage:             "LOGIN",
		ShippingPreference:      "https://b2b.zhifeiair.com",
		UserAction:              "PAY_NOW",
		ReturnUrl:               "https://b2b.zhifeiair.com",
		CancelUrl:               "https://b2b.zhifeiair.com",
	}

	return &model2.PaymentNotification{}, nil
}
